package com.jay.aop.config;

import com.jay.aop.aspect.AccountServiceAspect;
import com.jay.aop.service.AccountService;
import com.jay.aop.service.impl.AccountServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@EnableAspectJAutoProxy
public class AppConfig {
    @Bean
    public AccountService transferService(){
        return new AccountServiceImpl();
    }

    @Bean
    public AccountServiceAspect transferServiceAspect(){
        return new AccountServiceAspect();
    }
}
